/* 
 * File:   MyDate.h
 * Author: niyaz
 *
 * Created on 2 Март 2011 г., 11:02
 */

#ifndef MYDATE_H
#define	MYDATE_H
#include <iostream>
#include <stdlib.h>
#include <string>
using namespace std;

class MyDate {
public:

    int year;
    int month;
    int day;
    int hour;
    int minute;

    string conInt(int number) ; 

    void setDate(string& s);
    string& getstring();
    MyDate() : year(0), month(0), day(0), hour(0), minute(0), buf("") {};

    bool operator<(const MyDate& obj2);

    bool operator>(const MyDate& obj2);


private:
    string buf;

};

#endif	/* MYDATE_H */

